// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information.
#pragma once

namespace Weathr
{
    ref class Forecast;

    // Helper class for managing the thumbnail images assocaited with each image.
    class ThumbnailManager
    {
    public:
        ThumbnailManager() = delete;
        ThumbnailManager(ThumbnailManager const&) = delete;
        ThumbnailManager const& operator=(ThumbnailManager const&) = delete;

        static GUID GetThumbnailImageFormat();
        static concurrency::task<Windows::Storage::StorageFile^> GetThumbnailAsync(Forecast^ forecast);
        static concurrency::task<Windows::Storage::StorageFile^> CreateThumbnailAsync(Forecast^ forecast);
        static concurrency::task<void> WriteThumbnailAsync(Forecast^ forecast, Windows::Storage::Streams::IRandomAccessStream^ thumbnailStream);
    };
}